
<div class="form-group">
    <label for="exampleInputEmail1">标题</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请输入标题" [(ngModel)]="singlepage.title">
    <small id="emailHelp" class="form-text text-muted">标题不要超过40个字，不要包含特殊字符</small>
  </div>
  
  <div class="form-group">
    <label for="exampleInputEmail1">摘要</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请输入描述" [(ngModel)]="singlepage.summary">
    <small id="emailHelp" class="form-text text-muted">标题不要超过40个字，不要包含特殊字符</small>
  </div>
  
  <div class="form-group">
    <label for="exampleInputEmail1">图片</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请选择并上传图片" [(ngModel)]="singlepage.img">
    <input type="file" (change)="onFileChanged($event)">
    <button (click)="onUpload()">上传</button>
    <small id="emailHelp" class="form-text text-muted">标题不要超过40个字，不要包含特殊字符</small>
  </div>
  
  <div class="form-group">
    <label for="exampleInputEmail1">详细内容</label>
    <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请输入详细内容" [(ngModel)]="singlepage.detail">
    <small id="emailHelp" class="form-text text-muted">标题不要超过40个字，不要包含特殊字符</small>
  </div>
  <button class="btn btn-primary" (click)="save()">保存</button>
  <button class="btn btn-warning" (click)="goBack()">返回</button>